package org.liaohailong.victorlibrary.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.Nullable;

import org.liaohailong.victorlibrary.R;
import org.liaohailong.victorlibrary.base.BaseActivity;

/**
 * create by liaohailong
 * time 2022/8/26 14:58
 * desc: 演示ShapeFrameLayout
 */
public class ShapeLayoutActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shape_layout);

        View container = findViewById(R.id.fl_container);
        container.setOnClickListener(v -> {
            Toast.makeText(v.getContext(), "点击了", Toast.LENGTH_SHORT).show();
        });

        findViewById(R.id.tv_desc).setOnClickListener(v -> {
            Toast.makeText(v.getContext(), "点击了", Toast.LENGTH_SHORT).show();
        });

    }
}
